package com.wsq.mvvm.bind

import android.widget.TextView
import android.widget.Toast
import androidx.databinding.BindingAdapter
import androidx.lifecycle.LiveData

/**
 *
 *Date:2022/5/22
 *Time:14:11
 *author:wushengqi
 */
object BindAdapters {

    @BindingAdapter("loveWife")
    @JvmStatic
    fun loveWife(view:TextView, text:LiveData<String>){
        Toast.makeText(view.context, "I love you " + text.value, Toast.LENGTH_SHORT).show()
    }
}